console.log('qq.js')

const request = new XMLHttpRequest();
request.open('get','friends.json');
request.onreadystatechange = ()=>{
    if (request.readyState===4 && request.status===200){
        const object = JSON.parse(request.response)
        console.log(object);
    }
}
request.send()